package com.ywjt.platformbusiness.message;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.base.BaseActivity;
import com.ywjt.platformbusiness.message.adapter.MessageAdapter;

import java.util.ArrayList;
import java.util.List;

public class MessageActivity extends BaseActivity {
    private RecyclerView  rcCommon;
    private MessageAdapter adapter;
    private List<String> data;

    public static void actionStart(Context context) {
        Intent intent = new Intent(context, MessageActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        setAndroidNativeLightStatusBar(true);
    }

    @Override
    protected int setLayoutResourceID() {
        return R.layout.activity_common;
    }

    @Override
    protected void initView() {
        setTitleText("消息通知");
        rcCommon=findViewById(R.id.rcCommon);
        data=new ArrayList<>();
        for (int i=0;i<10;i++){
            data.add("");
        }
        adapter=new MessageAdapter(data);
        rcCommon.setLayoutManager(new LinearLayoutManager(this));
        rcCommon.setAdapter(adapter);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected int getTitleBarType() {
        return 0;
    }
}
